home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM BV3 / BMUG PD-ROM Version BV3 (CDRM1097900).iso / HyperCard / Business / $tock$tack v1.31b / $tock$tack Updater / cards.xml < prev    next >
Text File  |  1992-09-10  |  19KB  |  191 lines

  1. card_2972.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2972</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_3676.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2633</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3134.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <false /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>212</left>
  25.             <top>32</top>
  26.             <right>510</right>
  27.             <bottom>320</bottom>
  28.         </rect>
  29.         <style>scrolling</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>left</textAlign>
  38.         <font>Monaco</font>
  39.         <textSize>9</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>12</textHeight>
  42.         <name>Quote Track Notes</name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>2</id>
  47.         <type>button</type>
  48.         <visible> <true /> </visible>
  49.         <reserved5> 0 </reserved5>
  50.         <reserved4> 0 </reserved4>
  51.         <reserved3> 0 </reserved3>
  52.         <reserved2> 0 </reserved2>
  53.         <reserved1> 0 </reserved1>
  54.         <enabled> <true /> </enabled>
  55.         <rect>
  56.             <left>23</left>
  57.             <top>263</top>
  58.             <right>170</right>
  59.             <bottom>308</bottom>
  60.         </rect>
  61.         <style>transparent</style>
  62.         <showName> <false /> </showName>
  63.         <highlight> <false /> </highlight>
  64.         <autoHighlight> <false /> </autoHighlight>
  65.         <sharedHighlight> <true /> </sharedHighlight>
  66.         <family>0</family>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>center</textAlign>
  70.         <font>Chicago</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <name>Update Script</name>
  74.         <script>on mouseUpglobal RFlagif the optionKey is down thenput true into AltFormatselseput false into AltFormatsend ifif the commandKey is down thenput true into RFlagelseput false into RFlagend ifglobal StockSymbolset lockMessages to trueset lockRecent to trueset the numberFormat to "0.000"put true into RFlagput empty into StockSymbolif AltFormats is false thenanswer "Select file type:" with "Cancel" or "AOL" or "Prodigy"elseanswer "Select file type:" with "Cancel" or "GEnie" or "CIS MQuote II"end ifif it is "Cancel" then exit mouseUpput it into fileTypeput "Select Type text file to open:" into tPromptput fileType into word 2 of tPromptanswer file tPrompt of type "TEXT"put it into FileNameif it is empty then exit mouseUpopen file FileNameread from file FileName until EOFput it into TestFldclose file FileNameput false into DateFlagput 1 into counterpush cardput "Interpreting Data .....(Do Not Interrupt)"if fileType = "Prodigy" thenput "     Symbol: ____" after the msgrepeat with loop = 1 to the number of lines in TestFldput line counter of TestFld into Testif the length of Test < 2 thendelete line counter of TestFldelsedelete the first char of Testif word 1 of Test = "PRODIGY" or word 1 of Test = "RODIGY" thenif DateFlag is false thenput word 6 of Test into DDateconvert DDate to short dateask "Date of data?" with DDateif it is empty then exit mouseUpconvert it to short dateput it into DDateput true into DateFlagelsedelete line counter of TestFldend ifelseif char 1 of Test = space thendelete line counter of TestFldelseif char 1 of Test = "-" thendelete line counter of TestFldelseget the charToNum of char 2 of Testif it >=97 and it <=122 thendelete line counter of TestFldelsedelete the first char of line counter of TestFldif number of words in Test > 3 then   --  Stock Lineput comma into char  9 of Testput comma into char 20 of Testput comma into char 30 of Testput comma into char 41 of Testput comma into char 52 of Testput comma into char 63 of Testput word 1 of item 1 of Test into Symbolput Symbol into the last word of the msgput word 1 of item 2 of Test into Wholeif word 2 of item 2 of Test is not empty thenput word 2 of item 2 of Test into Fractionput Whole&"¬†"&Fraction into Wholeend ifif char 1 of whole = "+" then delete char 1 of wholeput Whole into Closeput word 1 of item 3 of Test into Wholeif word 2 of item 3 of Test is not empty thenput word 2 of item 3 of Test into Fractionput Whole&"¬†"&Fraction into Wholeend ifput Whole into Changeput word 1 of item 4 of Test into Wholeif word 2 of item 4 of Test is not empty thenput word 2 of item 4 of Test into Fractionput Whole&"¬†"&Fraction into Wholeend ifif char 1 of whole = "+" then delete char 1 of wholeput Whole into Openput word 1 of item 5 of Test into Wholeif word 2 of item 5 of Test is not empty thenput word 2 of item 5 of Test into Fractionput Whole&"¬†"&Fraction into Wholeend ifif char 1 of whole = "+" then delete char 1 of wholeput Whole into Highput word 1 of item 6 of Test into Wholeif word 2 of item 6 of Test is not empty thenput word 2 of item 6 of Test into Fractionput Whole&"¬†"&Fraction into Wholeend ifif char 1 of whole = "+" then delete char 1 of wholeput Whole into Lowput word 1 of item 7 of Test into Volumeif Volume is empty then put "0" into Volumeput Symbol into item 1 of Testput Open into item 2 of Testput High into item 3 of Testput Low into item 4 of Testput Close into item 5 of Testput Change into item 6 of Testput Volume into item 7 of Testput Test into line counter of TestFldelse  --  Mutual Fund Lineif the number of words in Test = 3 thendelete the last word of Testend ifput comma into char 9 of Testput word 1 of item 1 of Test into Symbolput Symbol into the last word of the msgput Symbol into item 1 of Testput word 1 of item 2 of Test into item 2 of Testput Test into line counter of TestFldend ifadd 1 to counterend ifend ifend ifend ifend ifend repeatelseif fileType = "AOL" thenask "Date of data?" with the short dateif it is empty then exit mouseUpconvert it to short dateput it into DDateput true into DateFlagset itemDelimiter to ";"repeat with loop = 1 to the number of lines in TestFldput line counter of TestFld into Testif the length of Test < 2 thendelete line counter of TestFldelseif char 1 of Test = space thendelete line counter of TestFldelseget the charToNum of char 2 of Testif (it >=97 and it <=122) or it = 42 thendelete line counter of TestFldelseput ";" into char  9 of Testput ";" into char 20 of Testput ";" into char 31 of Testput ";" into char 40 of Testput ";" into char 50 of Testput ";" into char 61 of Testput word 1 of item 1 of Test into Symbolput word 1 of item 2 of Test into Sharesput word 1 of item 3 of Test into Wholeif word 2 of item 3 of Test is not empty thenput word 2 of item 3 of Test into Fractionput Whole&"¬†"&Fraction into Wholeend ifput Whole into Closeput word 1 of item 4 of Test into Wholeif word 2 of item 4 of Test is not empty thenput word 2 of item 4 of Test into Fractionput Whole&"¬†"&Fraction into Wholeend ifput Whole into Changeput word 1 of item 5 of Test into PurchPriceput word 1 of item 6 of Test into GainLossput word 1 of item 7 of Test into Valueput empty into Testif Close contains "." then    --  Mutual Fundset the numberFormat to "0.00"put Symbol & comma & Close into Testelseput Close into Openput Num2Frac(XFrac2Num(Close) + .0625) into Highput Num2Frac(XFrac2Num(Close) - .0625) into Lowput 100 into Volumeset the numberFormat to "0.###"put Symbol & comma & Open & comma & High & comma & Low & comma &¬¨Close & comma & Change & comma &  Volume into Testend ifput Test into line counter of TestFldadd 1 to counterend ifend ifend ifend repeatelseif fileType = "CIS MQuote II" thenrepeat with loop = 1 to the number of lines in TestFld -- CIS MQuote IIput line counter of TestFld into Testif the length of Test < 2 thendelete line counter of TestFldelseif word 1 of Test = "Pricing" thenif DateFlag is false thenput word 3 to 5 of Test into DDateconvert DDate to short dateask "Date of data?" with DDateif it is empty then exit mouseUpconvert it to short dateput it into DDateput true into DateFlagelsedelete line counter of TestFldend ifelseif char 1 of Test = space thendelete line counter of TestFldelseif char 1 of Test = "-" thendelete line counter of TestFldelseget the charToNum of char 2 of Testif it >=97 and it <=122 thendelete line counter of TestFldelseif number of words in Test > 3 then   --  Stock Lineput comma into char  8 of Testput comma into char 22 of Testput comma into char 35 of Testput comma into char 48 of Testput comma into char 61 of Testput word 1 of item 1 of Test into Symbolput word 1 of item 2 of Test into Volumeput word 1 of item 3 of Test into Closeput "---" into Changeput Close into Openput word 1 of item 4 of Test into Highput word 1 of item 5 of Test into Lowput Symbol into item 1 of Testput Test into line counter of TestFldif (Volume = 0) and (High = Low) then --  Mutual Fund Lineset numberFormat to "0.00"put Close into item 2 of Testdelete item 3 to 7 of Testelse  --  Stock Lineset numberFormat to "0.####"put Num2Frac(Open) into item 2 of Testput Num2Frac(High) into item 3 of Testput Num2Frac(Low) into item 4 of Testput Num2Frac(Close) into item 5 of Testput Change into item 6 of Testput Volume into item 7 of Testend ifput Test into line counter of TestFldend ifadd 1 to counterend ifend ifend ifend ifend ifend repeatdelete the last line of TestFld  -- get rid of "Last page!"else-- GEnie format (comma delimited)ask "Date of data?" with the short dateif it is empty then exit mouseUpconvert it to short dateput it into DDateput true into DateFlagput "     Symbol: ____" after the msgrepeat with loop = 1 to the number of lines in TestFldput line counter of TestFld into Testif the length of Test < 2 thendelete line counter of TestFldelseif char 1 of Test = space thendelete line counter of TestFldelseget the charToNum of char 2 of Testif (it >=97 and it <=122) or it = 42 thendelete line counter of TestFldelseput item 1 of Test into Symbolput Symbol into the last word of the msgset the numberFormat to "0.###"put Num2Frac(item 2 of Test) into Openput Num2Frac(item 3 of Test) into Highput Num2Frac(item 4 of Test) into Lowput Num2Frac(item 5 of Test) into Closeput 100 * item 6 of Test into Volumeput "---" into Changeset the numberFormat to "0.###"put Symbol & comma & Open & comma & High & comma & Low & comma &¬¨Close & comma & Change & comma &  Volume into Testend ifput Test into line counter of TestFldadd 1 to counterend ifend ifend repeatend ifend ifset itemDelimiter to commaend ifdelete the last char of TestFldsort lines of TestFldset the numberFormat to "0.000"put "Updating Data Cards.....(Do Not Interrupt)"if the number of cds in this stack > 2 thengo cd 3elsego last cdend ifrepeat with index = 1 to the number of lines in TestFldput line index of TestFld into TLineif the number of items in TLine > 1 thenput item 1 of TLine into Symbolif the number of items in TLine < 3 thenput item 2 of TLine into Closeput empty into Changeput empty into Openput empty into Highput empty into Lowput empty into Volumeelseif item 2 of TLine is empty thenput item 5 of TLine into Openput Open into Closeput Open into Highput Open into Lowput "0" into Volumeput "0" into Changeelseif item 4 of TLine is empty thenput item 6 of TLine into Openput item 2 of TLine into Closeput item 7 of TLine into Volumeput "0" into Changeput Close into Highput Open into Lowelseput item 2 of TLine into Openput item 3 of TLine into Highput item 4 of TLine into Lowput item 5 of TLine into Closeput item 6 of TLine into Changeput item 7 of TLine into Volumeend ifend ifend ifput DDate&&Open&&High&&Low&&Close&&Change&&Volume into OutStrrepeat with Ctr = Length of DDate to 8put space after word 1 of OutStrend repeatrepeat with counter=2 to 7put length of word counter of OutStr into Tempif Temp < 7 thenput 7-Temp into Temprepeat with Ctr = 1 to Tempput space before word counter of OutStrend repeatend ifend repeatvisual effect iris open very fastgo to card Symbolif the result is not empty thenput Symbol into StockSymboldoMenu "New Card"set the name of this card to Symbolput empty into StockSymbolend ifconvert DDate to secondsconvert DDate to short dateif  DDate is in field "Daily History" of card Symbol thenput "You already have data for " & Symbol & "for " & DDate¬¨into TempStrif RWFlag is not true then answer TempStr with "Cancel Update"¬¨or "Continue"if it is "Cancel Update" then exit mouseUpput true into RWFlagfind DDate in bg fld "Daily History" of card Symbolput the foundline into Tempput word 2 of Temp into TempLineput line TempLine of fld "Daily History" of card Symbol into TempLinedelete Tempend ifput true into fld "Card Dirty" of card Symbolput true into fld "Daily Dirty" of card Symbolput true into fld "Weekly Dirty" of card Symbolif the hilite of background button "Mutual Fund" of card Symbol is true thenput word 1 to 2 of OutStr into OutStrend ifif the number of lines in fld "Daily History" <> 0 then put return after field "Daily History" of card Symbolput OutStr after field "Daily History" of card Symbolend ifend repeatput "Updating Individual Stock information....."pop cardput empty into the msghide the msg boxset cursor to 1put false into RFlagsend mouseUp to btn "Graph Marked Cards"end mouseUp</script>
  75.     </part>
  76.     <part>
  77.         <id>3</id>
  78.         <type>button</type>
  79.         <visible> <true /> </visible>
  80.         <reserved5> 0 </reserved5>
  81.         <reserved4> 0 </reserved4>
  82.         <reserved3> 0 </reserved3>
  83.         <reserved2> 0 </reserved2>
  84.         <reserved1> 0 </reserved1>
  85.         <enabled> <true /> </enabled>
  86.         <rect>
  87.             <left>31</left>
  88.             <top>38</top>
  89.             <right>181</right>
  90.             <bottom>86</bottom>
  91.         </rect>
  92.         <style>roundrect</style>
  93.         <showName> <true /> </showName>
  94.         <highlight> <false /> </highlight>
  95.         <autoHighlight> <true /> </autoHighlight>
  96.         <sharedHighlight> <true /> </sharedHighlight>
  97.         <family>0</family>
  98.         <titleWidth>0</titleWidth>
  99.         <icon>0</icon>
  100.         <textAlign>center</textAlign>
  101.         <font>Chicago</font>
  102.         <textSize>12</textSize>
  103.         <textStyle>plain</textStyle>
  104.         <name>Update $tock$tack</name>
  105.         <script>on mouseUpanswer file "Select $tock$tack to update:" of type "STAK"if (it is empty) or (the result is "Cancel") then exit mouseUpput it into srcFileput the script of cd btn "Update Script" into tempScriptset cursor to watchpush cardset lockMessages to truelock screengo stack srcFilego cd 1set the script of cd btn "Update" of cd 1 to tempScriptset the name of cd btn id 89 to "Version 1.4a"if the first word of cd fld "Stock Index" = ".DJIA" thenput "&DJIA" into the first word of cd fld "Stock Index"go cd ".DJIA"put "&DJIA" into fld "Symbol"set the name of this card to "&DJIA"end ifpop cardset lockMessages to falseunlock screenanswer "Update completed."end mouseUp</script>
  106.     </part>
  107.     <part>
  108.         <id>4</id>
  109.         <type>field</type>
  110.         <visible> <true /> </visible>
  111.         <dontWrap> <false /> </dontWrap>
  112.         <dontSearch> <false /> </dontSearch>
  113.         <sharedText> <false /> </sharedText>
  114.         <fixedLineHeight> <false /> </fixedLineHeight>
  115.         <autoTab> <false /> </autoTab>
  116.         <lockText> <true /> </lockText>
  117.         <rect>
  118.             <left>19</left>
  119.             <top>97</top>
  120.             <right>205</right>
  121.             <bottom>263</bottom>
  122.         </rect>
  123.         <style>shadow</style>
  124.         <autoSelect> <false /> </autoSelect>
  125.         <showLines> <false /> </showLines>
  126.         <wideMargins> <true /> </wideMargins>
  127.         <multipleLines> <false /> </multipleLines>
  128.         <reservedFamily> 0 </reservedFamily>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>0</icon>
  131.         <textAlign>left</textAlign>
  132.         <font>Monaco</font>
  133.         <textSize>9</textSize>
  134.         <textStyle>plain</textStyle>
  135.         <textHeight>12</textHeight>
  136.         <name>Instructions</name>
  137.         <script></script>
  138.     </part>
  139.     <part>
  140.         <id>5</id>
  141.         <type>field</type>
  142.         <visible> <true /> </visible>
  143.         <dontWrap> <false /> </dontWrap>
  144.         <dontSearch> <false /> </dontSearch>
  145.         <sharedText> <false /> </sharedText>
  146.         <fixedLineHeight> <false /> </fixedLineHeight>
  147.         <autoTab> <false /> </autoTab>
  148.         <lockText> <true /> </lockText>
  149.         <rect>
  150.             <left>18</left>
  151.             <top>265</top>
  152.             <right>205</right>
  153.             <bottom>325</bottom>
  154.         </rect>
  155.         <style>shadow</style>
  156.         <autoSelect> <false /> </autoSelect>
  157.         <showLines> <false /> </showLines>
  158.         <wideMargins> <true /> </wideMargins>
  159.         <multipleLines> <false /> </multipleLines>
  160.         <reservedFamily> 0 </reservedFamily>
  161.         <titleWidth>0</titleWidth>
  162.         <icon>0</icon>
  163.         <textAlign>center</textAlign>
  164.         <font>Times</font>
  165.         <textSize>14</textSize>
  166.         <textStyle>bold</textStyle>
  167.         <textHeight>18</textHeight>
  168.         <name>Author</name>
  169.         <script></script>
  170.     </part>
  171.     <content>
  172.         <layer>card</layer>
  173.         <id>1</id>
  174.         <text><span class="style2">ew Prodigy¬Æ Quote Track Info:</span><span class="style3"></span><span class="style1">To use $tock$tack with the new Prodigy¬Æ Quote Track, select the following options in"Report Setup" under the file menu:Range:            EntireReport Type:    CurrentDestination:    File (and Enter a File Name)$tock$tack will read in all (or at least most) stock and mutual funds, and now willalso read in the DJIA (Symbol: &DJIA) although it doesn't include any volume.  Thevolume already entered in the sample $tock$tack is for the NYSE.  Other indices willprobably work;  if you have problems with one, drop me a line and I'll take a look atit.To use a Quote Track file on your own disk (after you have created it) 'Jump' to 'QuoteTrack', then select 'Open' from the 'File' menu.  Select 'Track on your own disk', thenenter the file name.  The file should be in the SAME folder as Prodigy!Select 'View Quotes' from the 'File' menu, then select 'Report Setup' (I'm not surewhether you have to do this every time;  if you only use one file, then you probablydon't have to.)  Then enter the Setup parameters listed above, and select "Save" or"Save and Print".  After you have saved your parameters, you should be able to omit the'Report Setup' step, and just select 'Print' from the 'File' menu.Similar procedures apply if your using a 'Quote Track' stored on Prodigy¬Æ, just selectthe appropriate 'Quote Track' instead of a file.Your patience is appreciated, and I'll try to keep on top of the changes which Prodigy¬Æmakes.Pat Sullivan (Prodigy: MFGV75A)</span></text>
  175.     </content>
  176.     <content>
  177.         <layer>card</layer>
  178.         <id>4</id>
  179.         <text>To update version 1.4 of $tock$tack, simply push the button above and select the appropriate $tock$tack.This stack will update your version to version 1.4a, and you should then be able to read the new Prodigy¬Æ Quote Track files.</text>
  180.     </content>
  181.     <content>
  182.         <layer>card</layer>
  183.         <id>5</id>
  184.         <text>Patrick M. SullivanProdigy:  MFGV75AAOL:  PSulliv256</text>
  185.     </content>
  186.     <name></name>
  187.     <script></script>
  188. </card>
  189.  
  190.  
  191.